<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<a4j:outputPanel id="pdf_target_panel">
		<h:panelGrid id="pdf_target_panel_grid"
			rendered="#{pdfManaged.displayPdf}" width="100%">

			<h:panelGroup>
				[
				<a4j:commandLink action="#{pdfManaged.closePdfObject}"
					render="pdf_target_panel">
					<h:outputText value="#{lbl['common.button.close']}" />
				</a4j:commandLink> | 
				
				<h:outputLink value="#{pdfManaged.pdfFileToLoad}"
					type="application/pdf" target="_blank">
					<h:outputText value="#{lbl['common.button.load']}"/>
				</h:outputLink>
				 ]
			</h:panelGroup>

			<object id="pdf_target_object" data="#{pdfManaged.pdfFileToLoad}"
				type="application/pdf" width="100%" height="100%" />
		</h:panelGrid>
	</a4j:outputPanel>
</ui:composition>
</html>